package com.ruoyi.common.utils;

import com.ruoyi.common.constant.UserConstants;

public class SysTenantUtils {

    public static String getAppCodePrefix(String appType) {
        switch (appType)
        {
            case UserConstants.SYSTEM_TENANT_TYPE:
                return "SYSTEM_";
            case UserConstants.COMMUNITY_TENANT_TYPE:
                return "COMMUNITY_";
            case UserConstants.OLD_HOME_TENANT_TYPE:
                return "HOME_";
            case UserConstants.OLD_UNIVERSITY_TENANT_TYPE:
                return "UNIVERSITY_";
            case UserConstants.VOLUNTEER_TENANT_TYPE:
                return "VOLUNTEER_";
            case UserConstants.SHOP_TENANT_TYPE:
                return "SHOP_";
            case UserConstants.HOUSE_KEEP_TENANT_TYPE:
                return "HOUSE_";
            default:
                return "";
        }
    }
}
